<template>
<h3>内联事件处理器</h3>

<button v-on:click="count++">add  1</button>
<p>count is: {{count}}</p>
<!-- 使用@简写   -->
<button @:click="count++">add  1</button>
<p>count is: {{count}}</p>


</template>

<script>
export default {
    data(){
        return {
           count:0
        }
    }
}
</script>